import request from '@/utils/request'

export async function likeQuery(data) {
    return await new request({
        url: '/adminSever/career/list',
        method: 'POST',
        data
    })
}

export async function saveCareer(data) {
    return await new request({
        url: '/adminSever/career/saveCareer',
        method: 'POST',
        data
    })
}

export async function getCareerInfoById(id) { 
    return await new request({
        url: `/adminSever/career/${id}`,
        method: 'GET'
    })
}

export async function editCareerInfoById(id,data) {
    return await new request({
        url: `/adminSever/career/${id}`,
        method: 'PUT',
        data
    })
}

export async function deleteCareerByIds(data) {
    return await new request({
        url: '/adminSever/career',
        method: 'DELETE',
        data
    })
}